// pages/workService/components/paySuccess/paySuccess.js
Page({
  /**
   * 页面的初始数据
   */
  data: {},

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {},
  viewPage() {
    wx.$API['home/themePageAddHits']({ type: 'paySuccess' })
    // 打开ppt页面
    wx.navigateTo({
      url: '/pages/web/web?path=https%3A%2F%2Fxwx.gzzmedu.com%2Fxwx-mall%2Fhome',
      // url: '/pages/web/web?path=https%3A%2F%2Fxwx.gzzmedu.com%2Fxwx-mall%2Fhome%3FproductionId%3Dd8349847b2754487a1ff598cc0062dda',
    })
    return
    let schoolConfig = wx.getStorageSync('schoolConfig')
    let userInfo = wx.getStorageSync('userInfo')
    if (schoolConfig.param1) {
      if (schoolConfig.param1.indexOf('?') !== -1) {
        schoolConfig.param1 += `&schoolCode=${schoolConfig.schoolCode}&studentNumber=${userInfo.userId}`
      } else {
        schoolConfig.param1 += `?schoolCode=${schoolConfig.schoolCode}&studentNumber=${userInfo.userId}`
      }
    }
    console.log(schoolConfig.param1, '这是跳转智联招聘的url')
    wx.navigateToMiniProgram({
      appId: 'wx08e25a163d60852c',
      path: schoolConfig.param1,
      success: () => {},
    })
  },
  confirm() {
    wx.reLaunch({
      url: '/pages/home/index',
    })
  },
})
